package com.xc.hotelmgr.webapi.modules.op.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.hotelmgr.webapi.common.utils.PageUtils;
import com.xc.hotelmgr.webapi.common.utils.R;
import com.xc.hotelmgr.webapi.modules.op.entity.DtUpHtlEntity;
import com.xc.hotelmgr.webapi.modules.op.entity.UpHtlDto;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author kemmy
 * @email kemmy@gmail.com
 * @date 2020-09-30 08:51:24
 */
public interface DtUpHtlService extends IService<DtUpHtlEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R prePareSave(UpHtlDto upHtlDto);

    public void  saveUphtl(List<DtUpHtlEntity> upHtlEntities);

    PageUtils sqlQueryPage(Map<String, Object> params);

    PageUtils sqlQueryPageByName(Map<String, Object> params);

    List<DtUpHtlEntity> sqlQueryByStore(Map<String, Object> params);

    PageUtils sqlQueryHtlPage(Map<String, Object> params);

    void redisInit();

    List<Long> getHotelList(Integer status);

    List<Long> getByStoreId(int storeId);

    List<Long> getByAreaId(Integer storeId, Long sendId);

    List<Long> getByGroupId(Integer storeId, Long sendId);
}

